package edu.lingnan.librarymanage.repository;

import edu.lingnan.librarymanage.core.bean.Admin;
import edu.lingnan.librarymanage.core.bean.Category;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

/**
 * @author cql
 */
@Repository
public interface AdminRepository extends JpaRepository<Admin, Integer> {


    /**
     * 根据密码和账号查询
     *
     * @param account
     * @param password
     * @return
     */
    Admin findByAccountAndPassword(String account, String password);
}
